package com.bai.websocketandmybatisplus.exception;

public enum AllErrorEnum {
    //异常枚举内容未填充
    USER_IS_NULL(-1,"用户实体为空"),
    ADDUSER_ERROR(-1,"插入用户失败了"),
    DELETE_ERROR(-1,"删除用户失败了"),
    UPDATE_ERROR(-1,"更新用户失败了"),
    USERID_IS_NULL(-1,"用户id为空"),
    CHAT_INSERT_ERROR(-1,"插入聊天记录失败"),
    ;

    public final int stauts;
    public final String message;

    AllErrorEnum(int stauts, String message) {
        this.stauts = stauts;
        this.message = message;
    }

    public int getStauts() {
        return stauts;
    }

    public String getMessage() {
        return message;
    }
}
